home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Safarir 3
/
SafTV-CD3.iso
/
pc
/
Bonus
/
Dessins Animés
/
static
/
jeux
/
teletub.swf
/
scripts
/
DefineButton2_127
/
BUTTONCONDACTION on(press).as
Wrap
Text File
|
2001-11-21
|
2KB
|
48 lines
on(press){
tellTarget("../Actions_Weapons")
{
gotoAndStop("FireWeapon");
play();
}
if(eval("/:Weapon") == "3")
{
if("0" < eval("/:Rounds"))
{
tellTarget("../Headshot")
{
gotoAndPlay(2);
}
Counter = "1";
while("10" >= Counter)
{
duplicateMovieClip("../CowSplat","Blood" add eval("/:Index"),eval("/:Index") + 16384);
setProperty("../Blood" add eval("/:Index"), _rotation, random("360"));
setProperty("../Blood" add eval("/:Index"), _X, getProperty("../Cursor", _X));
setProperty("../Blood" add eval("/:Index"), _Y, getProperty("../Cursor", _Y));
setProperty("../Blood" add eval("/:Index"), _xscale, "75");
setProperty("../Blood" add eval("/:Index"), _yscale, "75");
tellTarget("../Blood" add eval("/:Index"))
{
gotoAndPlay(2);
}
set("/:Index",eval("/:Index") + "1");
Counter += "1";
}
duplicateMovieClip("../Score+20","Score+20" add eval("/:Index"),eval("/:Index") + 16384);
setProperty("../Score+20" add eval("/:Index"), _X, getProperty("../Cursor", _X));
setProperty("../Score+20" add eval("/:Index"), _Y, getProperty("../Cursor", _Y) - "75");
tellTarget("../Score+20" add eval("/:Index"))
{
gotoAndPlay(2);
}
set("/:Index",eval("/:Index") + "1");
set("/:Score",eval("/:Score") + "20");
tellTarget("../Sounds_Announcer")
{
gotoAndPlay(2);
}
gotoAndPlay(19);
}
}
}